<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="" />
<!-- Le styles -->
<link rel="stylesheet" type="text/css" media="screen"
	href="<?php echo Yii::app()->baseUrl?>/css/lib/redmond/jquery-ui-1.8.22.custom.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<?php echo Yii::app()->baseUrl?>/css/lib/jquery.dataTables.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<?php echo Yii::app()->baseUrl?>/css/lib/form.css" />

<link href="<?php echo Yii::app()->baseUrl?>/css/lib/bootstrap.cerulean.min.css"
	rel="stylesheet" />
<style type="text/css">
body {
	padding-top: 60px;
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}
</style>
<link
	href="<?php echo Yii::app()->baseUrl?>/css/lib/bootstrap-responsive.css"
	rel="stylesheet" />
<script type='text/javascript'>
	var layoutBaseURL='<?php echo Yii::app()->baseUrl?>';
</script>
<script type="text/javascript"
	src="<?php echo Yii::app()->baseUrl?>/js/lib/require.js"></script>
<script type="text/javascript"
	src="<?php echo Yii::app()->baseUrl?>/js/app.js"></script>
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
				</a> <a class="brand"
					href="<?php Yii::app()->createUrl('/administracion')?>">PROYECTO
					DTT</a>
				<div class="btn-group pull-right">
					<?php if(!Yii::app()->user->isGuest):?>
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i
						class="icon-user"></i> <?php echo Yii::app()->user->title?> <span
						class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="#">Perfil</a></li>
						<li class="divider"></li>
						<li><a href="<?php echo $this->createUrl('/site/logout')?>">Cerrar
								Sesion</a></li>
					</ul>
					<?php endif;?>
				</div>
				<div class="nav-collapse">
					<ul class="nav">
						<li><a href="<?php echo $this->createUrl('/site/index')?>">Inicio</a>
						</li>
						<li><a
							href="<?php echo $this->createUrl('/site/page',array('view'=>'about'))?>">Acerca
								de</a></li>
						<li><a href="<?php echo $this->createUrl('/site/contact')?>">Contacto</a>
						</li>
						<?php if(Yii::app()->user->checkAccess('ADMINISTRADOR')):?>
						<li><a href="<?php echo $this->createUrl('/administracion')?>">Sitio
								Administrativo</a></li>
						<?php endif;?>
						<?php if(Yii::app()->user->isGuest):?>
							<li><a href="<?php echo $this->createUrl('/site/login')?>">Login</a>
						<?php endif;?>						
						</li>
					</ul>
				</div>
				<!--/.nav-collapse -->
			</div>
		</div>
	</div>

	<div class="container-fluid">
		<div class="row-fluid">
			<span class="span12"> <?php 
			$this->widget('zii.widgets.CBreadcrumbs', array(
				  		'links'=>$this->breadcrumbs,
				  ));
				  ?>
			</span>
		</div>
		<div class="row-fluid">
			<!--/span-->
			<div class="span12">
				<div class="row-fluid">
					<?php echo $content; ?>
				</div>
				<!--/span-->
			</div>
			<!--/row-->
		</div>
		<!--/span-->
	</div>
	<!--/row-->

	<hr />
	<footer>
	<p>&copy; JumLabs 2012 all rights reserved</p>
	</footer>
</body>
</html>
